package com.aaa.dao;

import com.aaa.entity.Goods;

import java.util.List;

public interface GoodsDao {

    int addGoods(Goods goods);


    List<Goods> consumerGoodList(Integer pageNumber, Integer pageSize, String searchGoods, String searchName)throws Exception;


    int getConsumerGoodListCount(String searchGoods, String searchName);


    /**
     * 库存表更改
     */
    int consumerGoods(Integer goodsId, Integer code);

    /**
     * 商品消费里的商品列表
     * @param pageNumber
     * @param pageSize
     * @param searchGoods
     * @param searchName
     * @return
     */
    List<Goods> getConsumerGoodsList(Integer pageNumber, Integer pageSize, String searchGoods, String searchName);

    /**
     * 可以购买的商品总数
     * @param searchGoods
     * @param searchName
     * @return
     */
    int getConsumerGoodsInfoCount(String searchGoods, String searchName);
}
